<template>
  <div class="app-container">
    <!-- 对话框(添加 / 修改) -->
    <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="45%" v-dialogDrag append-to-body>
      <el-form ref="formRef" :model="formData" :rules="formRules" v-loading="formLoading" label-width="100px">
                    <el-form-item label="机构名称" prop="orgname">
                      <el-input v-model="formData.orgname" placeholder="请输入机构名称" />
                    </el-form-item>
                    <el-form-item label="证券代码" prop="seccode">
                      <el-input v-model="formData.seccode" placeholder="请输入证券代码" />
                    </el-form-item>
                    <el-form-item label="证券简称" prop="secname">
                      <el-input v-model="formData.secname" placeholder="请输入证券简称" />
                    </el-form-item>
                    <el-form-item label="开始日期" prop="startdate">
                      <el-date-picker clearable v-model="formData.startdate" type="date" value-format="timestamp" placeholder="选择开始日期" />
                    </el-form-item>
                    <el-form-item label="截止日期" prop="enddate">
                      <el-date-picker clearable v-model="formData.enddate" type="date" value-format="timestamp" placeholder="选择截止日期" />
                    </el-form-item>
                    <el-form-item label="数据来源编码" prop="f001v">
                      <el-input v-model="formData.f001v" placeholder="请输入数据来源编码" />
                    </el-form-item>
                    <el-form-item label="数据来源" prop="f002v">
                      <el-input v-model="formData.f002v" placeholder="请输入数据来源" />
                    </el-form-item>
                    <el-form-item label="每股收益	单位：元" prop="f003n">
                      <el-input v-model="formData.f003n" placeholder="请输入每股收益	单位：元" />
                    </el-form-item>
                    <el-form-item label="基本每股收益	单位：元" prop="f004n">
                      <el-input v-model="formData.f004n" placeholder="请输入基本每股收益	单位：元" />
                    </el-form-item>
                    <el-form-item label="稀释每股收益	单位：元" prop="f005n">
                      <el-input v-model="formData.f005n" placeholder="请输入稀释每股收益	单位：元" />
                    </el-form-item>
                    <el-form-item label="扣除非经常性损益每股收益	单位：元" prop="f006n">
                      <el-input v-model="formData.f006n" placeholder="请输入扣除非经常性损益每股收益	单位：元" />
                    </el-form-item>
                    <el-form-item label="每股未分配利润	单位：元" prop="f007n">
                      <el-input v-model="formData.f007n" placeholder="请输入每股未分配利润	单位：元" />
                    </el-form-item>
                    <el-form-item label="每股净资产	净资产/股本" prop="f008n">
                      <el-input v-model="formData.f008n" placeholder="请输入每股净资产	净资产/股本" />
                    </el-form-item>
                    <el-form-item label="调整后每股净资产" prop="f009n">
                      <el-input v-model="formData.f009n" placeholder="请输入调整后每股净资产" />
                    </el-form-item>
                    <el-form-item label="每股资本公积金	资本公积/股本" prop="f010n">
                      <el-input v-model="formData.f010n" placeholder="请输入每股资本公积金	资本公积/股本" />
                    </el-form-item>
                    <el-form-item label="营业利润率	营业利润/营业收入*100" prop="f011n">
                      <el-input v-model="formData.f011n" placeholder="请输入营业利润率	营业利润/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="营业税金率	营业税金/营业收入*100" prop="f012n">
                      <el-input v-model="formData.f012n" placeholder="请输入营业税金率	营业税金/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="营业成本率	营业成本/营业收入*100" prop="f013n">
                      <el-input v-model="formData.f013n" placeholder="请输入营业成本率	营业成本/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="净资产收益率	净利润/股东权益*100" prop="f014n">
                      <el-input v-model="formData.f014n" placeholder="请输入净资产收益率	净利润/股东权益*100" />
                    </el-form-item>
                    <el-form-item label="投资收益率 投资收益*2/期初(交易性金融资产+可供出售金融资产+持有至到期投资+长期股权投资)+期末(交易性金融资产+可供出售金融资产+持有至到期投资+长期股权投资)*100" prop="f015n">
                      <el-input v-model="formData.f015n" placeholder="请输入投资收益率 投资收益*2/期初(交易性金融资产+可供出售金融资产+持有至到期投资+长期股权投资)+期末(交易性金融资产+可供出售金融资产+持有至到期投资+长期股权投资)*100" />
                    </el-form-item>
                    <el-form-item label="总资产报酬率	归属母公司所有者的净利润*2/(期末资产总额+期初资产总额)*100" prop="f016n">
                      <el-input v-model="formData.f016n" placeholder="请输入总资产报酬率	归属母公司所有者的净利润*2/(期末资产总额+期初资产总额)*100" />
                    </el-form-item>
                    <el-form-item label="净利润率	净利润/营业收入*100" prop="f017n">
                      <el-input v-model="formData.f017n" placeholder="请输入净利润率	净利润/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="管理费用率	管理费用/营业收入*100" prop="f018n">
                      <el-input v-model="formData.f018n" placeholder="请输入管理费用率	管理费用/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="财务费用率	财务费用/营业收入*100" prop="f019n">
                      <el-input v-model="formData.f019n" placeholder="请输入财务费用率	财务费用/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="成本费用利润率	利润总额/成本费用总额×100" prop="f020n">
                      <el-input v-model="formData.f020n" placeholder="请输入成本费用利润率	利润总额/成本费用总额×100" />
                    </el-form-item>
                    <el-form-item label="三费比重	（财务费用+管理费用+营业费用）/营业收入*100" prop="f021n">
                      <el-input v-model="formData.f021n" placeholder="请输入三费比重	（财务费用+管理费用+营业费用）/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="应收账款周转率	营业收入/[(期初应收账款+期末应收账款)/2]" prop="f022n">
                      <el-input v-model="formData.f022n" placeholder="请输入应收账款周转率	营业收入/[(期初应收账款+期末应收账款)/2]" />
                    </el-form-item>
                    <el-form-item label="存货周转率	营业成本/[(期初存货+期末存货)/2]" prop="f023n">
                      <el-input v-model="formData.f023n" placeholder="请输入存货周转率	营业成本/[(期初存货+期末存货)/2]" />
                    </el-form-item>
                    <el-form-item label="运营资金周转率	营业收入/[(期初流动资产-期初流动负债)+(期末流动资产-期末流动负债)/2]" prop="f024n">
                      <el-input v-model="formData.f024n" placeholder="请输入运营资金周转率	营业收入/[(期初流动资产-期初流动负债)+(期末流动资产-期末流动负债)/2]" />
                    </el-form-item>
                    <el-form-item label="总资产周转率	营业收入/((期初资产总计+期末资产总计)/2)" prop="f025n">
                      <el-input v-model="formData.f025n" placeholder="请输入总资产周转率	营业收入/((期初资产总计+期末资产总计)/2)" />
                    </el-form-item>
                    <el-form-item label="固定资产周转率	营业收入/((期初固定资产+期末固定资产)/2)" prop="f026n">
                      <el-input v-model="formData.f026n" placeholder="请输入固定资产周转率	营业收入/((期初固定资产+期末固定资产)/2)" />
                    </el-form-item>
                    <el-form-item label="应收账款周转天数	N/应收账款周转率" prop="f027n">
                      <el-input v-model="formData.f027n" placeholder="请输入应收账款周转天数	N/应收账款周转率" />
                    </el-form-item>
                    <el-form-item label="存货周转天数	N/存货周转率" prop="f028n">
                      <el-input v-model="formData.f028n" placeholder="请输入存货周转天数	N/存货周转率" />
                    </el-form-item>
                    <el-form-item label="流动资产周转率	营业收入/[（期初流动资产+期末流动资产）/2]" prop="f029n">
                      <el-input v-model="formData.f029n" placeholder="请输入流动资产周转率	营业收入/[（期初流动资产+期末流动资产）/2]" />
                    </el-form-item>
                    <el-form-item label="流动资产周转天数	N/流动资产周转率" prop="f030n">
                      <el-input v-model="formData.f030n" placeholder="请输入流动资产周转天数	N/流动资产周转率" />
                    </el-form-item>
                    <el-form-item label="总资产周转天数	N/总资产周转率" prop="f031n">
                      <el-input v-model="formData.f031n" placeholder="请输入总资产周转天数	N/总资产周转率" />
                    </el-form-item>
                    <el-form-item label="股东权益周转率	营业收入*2/(期初股东权益+期末股东权益)" prop="f032n">
                      <el-input v-model="formData.f032n" placeholder="请输入股东权益周转率	营业收入*2/(期初股东权益+期末股东权益)" />
                    </el-form-item>
                    <el-form-item label="流动资产比率	流动资产/总资产*100" prop="f033n">
                      <el-input v-model="formData.f033n" placeholder="请输入流动资产比率	流动资产/总资产*100" />
                    </el-form-item>
                    <el-form-item label="货币资金比率	货币资金/流动资产*100" prop="f034n">
                      <el-input v-model="formData.f034n" placeholder="请输入货币资金比率	货币资金/流动资产*100" />
                    </el-form-item>
                    <el-form-item label="交易性金融资产比率	短期投资/流动资产*100" prop="f035n">
                      <el-input v-model="formData.f035n" placeholder="请输入交易性金融资产比率	短期投资/流动资产*100" />
                    </el-form-item>
                    <el-form-item label="存货比率	存货/流动资产*100" prop="f036n">
                      <el-input v-model="formData.f036n" placeholder="请输入存货比率	存货/流动资产*100" />
                    </el-form-item>
                    <el-form-item label="固定资产比率	固定资产/总资产*100" prop="f037n">
                      <el-input v-model="formData.f037n" placeholder="请输入固定资产比率	固定资产/总资产*100" />
                    </el-form-item>
                    <el-form-item label="负债结构比	流动负债/非流动负债*100" prop="f038n">
                      <el-input v-model="formData.f038n" placeholder="请输入负债结构比	流动负债/非流动负债*100" />
                    </el-form-item>
                    <el-form-item label="产权比率	负债总额/股东权益*100" prop="f039n">
                      <el-input v-model="formData.f039n" placeholder="请输入产权比率	负债总额/股东权益*100" />
                    </el-form-item>
                    <el-form-item label="净资产比率	100-资产负债率；净资产/总资产*100" prop="f040n">
                      <el-input v-model="formData.f040n" placeholder="请输入净资产比率	100-资产负债率；净资产/总资产*100" />
                    </el-form-item>
                    <el-form-item label="资产负债比率	负债总额/资产总额*100" prop="f041n">
                      <el-input v-model="formData.f041n" placeholder="请输入资产负债比率	负债总额/资产总额*100" />
                    </el-form-item>
                    <el-form-item label="流动比率	流动资产/流动负债" prop="f042n">
                      <el-input v-model="formData.f042n" placeholder="请输入流动比率	流动资产/流动负债" />
                    </el-form-item>
                    <el-form-item label="速动比率	(流动资产-存货)/流动负债" prop="f043n">
                      <el-input v-model="formData.f043n" placeholder="请输入速动比率	(流动资产-存货)/流动负债" />
                    </el-form-item>
                    <el-form-item label="现金比率	货币资金/流动负债*100" prop="f044n">
                      <el-input v-model="formData.f044n" placeholder="请输入现金比率	货币资金/流动负债*100" />
                    </el-form-item>
                    <el-form-item label="利息保障倍数	息税前利润/利息费用=(利润总额+财务费用)/财务费用" prop="f045n">
                      <el-input v-model="formData.f045n" placeholder="请输入利息保障倍数	息税前利润/利息费用=(利润总额+财务费用)/财务费用" />
                    </el-form-item>
                    <el-form-item label="营运资金	流动资产-流动负债" prop="f046n">
                      <el-input v-model="formData.f046n" placeholder="请输入营运资金	流动资产-流动负债" />
                    </el-form-item>
                    <el-form-item label="非流动负债比率	（非流动负债/负债合计）*100" prop="f047n">
                      <el-input v-model="formData.f047n" placeholder="请输入非流动负债比率	（非流动负债/负债合计）*100" />
                    </el-form-item>
                    <el-form-item label="流动负债比率	流动负债/总负债*100" prop="f048n">
                      <el-input v-model="formData.f048n" placeholder="请输入流动负债比率	流动负债/总负债*100" />
                    </el-form-item>
                    <el-form-item label="保守速动比率	（货币资金+交易性金融资产+应收票据+应收账款+其他应收款)/流动负债" prop="f049n">
                      <el-input v-model="formData.f049n" placeholder="请输入保守速动比率	（货币资金+交易性金融资产+应收票据+应收账款+其他应收款)/流动负债" />
                    </el-form-item>
                    <el-form-item label="现金到期债务比率	经营活动现金净流量*100/本期到期的债务=经营活动现金净流量*100/（一年内到期的非流动负债＋应付票据）" prop="f050n">
                      <el-input v-model="formData.f050n" placeholder="请输入现金到期债务比率	经营活动现金净流量*100/本期到期的债务=经营活动现金净流量*100/（一年内到期的非流动负债＋应付票据）" />
                    </el-form-item>
                    <el-form-item label="有形资产净值债务率	负债总额*100/(归属母公司所有者的股东权益-无形资产-商誉)" prop="f051n">
                      <el-input v-model="formData.f051n" placeholder="请输入有形资产净值债务率	负债总额*100/(归属母公司所有者的股东权益-无形资产-商誉)" />
                    </el-form-item>
                    <el-form-item label="营业收入增长率	(本期营业收入/上期营业收入-1)*100" prop="f052n">
                      <el-input v-model="formData.f052n" placeholder="请输入营业收入增长率	(本期营业收入/上期营业收入-1)*100" />
                    </el-form-item>
                    <el-form-item label="净利润增长率	(本期净利润/上期净利润-1)*100" prop="f053n">
                      <el-input v-model="formData.f053n" placeholder="请输入净利润增长率	(本期净利润/上期净利润-1)*100" />
                    </el-form-item>
                    <el-form-item label="净资产增长率	(期末股东权益/期初股东权益-1)*100" prop="f054n">
                      <el-input v-model="formData.f054n" placeholder="请输入净资产增长率	(期末股东权益/期初股东权益-1)*100" />
                    </el-form-item>
                    <el-form-item label="固定资产增长率	(期末固定资产/期初固定资产-1)*100" prop="f055n">
                      <el-input v-model="formData.f055n" placeholder="请输入固定资产增长率	(期末固定资产/期初固定资产-1)*100" />
                    </el-form-item>
                    <el-form-item label="总资产增长率	(期末资产总额/期初资产总额-1)*100" prop="f056n">
                      <el-input v-model="formData.f056n" placeholder="请输入总资产增长率	(期末资产总额/期初资产总额-1)*100" />
                    </el-form-item>
                    <el-form-item label="投资收益增长率	(本期投资收益/上期投资收益-1)*100" prop="f057n">
                      <el-input v-model="formData.f057n" placeholder="请输入投资收益增长率	(本期投资收益/上期投资收益-1)*100" />
                    </el-form-item>
                    <el-form-item label="营业利润增长率	(本期营业利润/上年同期营业利润-1)*100" prop="f058n">
                      <el-input v-model="formData.f058n" placeholder="请输入营业利润增长率	(本期营业利润/上年同期营业利润-1)*100" />
                    </el-form-item>
                    <el-form-item label="每股现金流量	现金流量净额/（股本*面值）" prop="f059n">
                      <el-input v-model="formData.f059n" placeholder="请输入每股现金流量	现金流量净额/（股本*面值）" />
                    </el-form-item>
                    <el-form-item label="每股经营现金流量	经营现金净流量/（股本*面值）" prop="f060n">
                      <el-input v-model="formData.f060n" placeholder="请输入每股经营现金流量	经营现金净流量/（股本*面值）" />
                    </el-form-item>
                    <el-form-item label="经营净现金比率（短期债务）	经营现金净流量*100/流动负债" prop="f061n">
                      <el-input v-model="formData.f061n" placeholder="请输入经营净现金比率（短期债务）	经营现金净流量*100/流动负债" />
                    </el-form-item>
                    <el-form-item label="经营净现金比率（全部债务）	经营现金净流量*100/负债总额" prop="f062n">
                      <el-input v-model="formData.f062n" placeholder="请输入经营净现金比率（全部债务）	经营现金净流量*100/负债总额" />
                    </el-form-item>
                    <el-form-item label="经营活动现金净流量与净利润比率	经营活动现金净流量*100/净利润" prop="f063n">
                      <el-input v-model="formData.f063n" placeholder="请输入经营活动现金净流量与净利润比率	经营活动现金净流量*100/净利润" />
                    </el-form-item>
                    <el-form-item label="营业收入现金含量	经营活动现金流入量*100/营业收入" prop="f064n">
                      <el-input v-model="formData.f064n" placeholder="请输入营业收入现金含量	经营活动现金流入量*100/营业收入" />
                    </el-form-item>
                    <el-form-item label="全部资产现金回收率	经营活动现金流量净额*100 /资产总额" prop="f065n">
                      <el-input v-model="formData.f065n" placeholder="请输入全部资产现金回收率	经营活动现金流量净额*100 /资产总额" />
                    </el-form-item>
                    <el-form-item label="净资产收益率(扣除非经常性损益)	单位：%" prop="f066n">
                      <el-input v-model="formData.f066n" placeholder="请输入净资产收益率(扣除非经常性损益)	单位：%" />
                    </el-form-item>
                    <el-form-item label="净资产收益率-加权	单位：%" prop="f067n">
                      <el-input v-model="formData.f067n" placeholder="请输入净资产收益率-加权	单位：%" />
                    </el-form-item>
                    <el-form-item label="净资产收益率-加权(扣除非经常性损益)	单位：%" prop="f068n">
                      <el-input v-model="formData.f068n" placeholder="请输入净资产收益率-加权(扣除非经常性损益)	单位：%" />
                    </el-form-item>
                    <el-form-item label="报告年度" prop="f069d">
                      <el-input v-model="formData.f069d" placeholder="请输入报告年度" />
                    </el-form-item>
                    <el-form-item label="合并类型编码" prop="f070v">
                      <el-input v-model="formData.f070v" placeholder="请输入合并类型编码" />
                    </el-form-item>
                    <el-form-item label="合并类型" prop="f071v">
                      <el-input v-model="formData.f071v" placeholder="请输入合并类型" />
                    </el-form-item>
                    <el-form-item label="扣除非经常性损益后的净利润	单位：元" prop="f076n">
                      <el-input v-model="formData.f076n" placeholder="请输入扣除非经常性损益后的净利润	单位：元" />
                    </el-form-item>
                    <el-form-item label="非经常性损益合计	单位：元" prop="f077n">
                      <el-input v-model="formData.f077n" placeholder="请输入非经常性损益合计	单位：元" />
                    </el-form-item>
                    <el-form-item label="毛利率	(营业收入-营业成本)/营业收入*100" prop="f078n">
                      <el-input v-model="formData.f078n" placeholder="请输入毛利率	(营业收入-营业成本)/营业收入*100" />
                    </el-form-item>
                    <el-form-item label="期间费用率	期间费用率=(年末期间费用/年末营业收入)*100%" prop="f079n">
                      <el-input v-model="formData.f079n" placeholder="请输入期间费用率	期间费用率=(年末期间费用/年末营业收入)*100%" />
                    </el-form-item>
                    <el-form-item label="现金转换周期	现金转换周期=存货转换期间+应收账款转换期间" prop="f080n">
                      <el-input v-model="formData.f080n" placeholder="请输入现金转换周期	现金转换周期=存货转换期间+应收账款转换期间" />
                    </el-form-item>
                    <el-form-item label="净资产收益率	净资产收益率=年末净利润/年平均净资产" prop="f081n">
                      <el-input v-model="formData.f081n" placeholder="请输入净资产收益率	净资产收益率=年末净利润/年平均净资产" />
                    </el-form-item>
                    <el-form-item label="净利含金量	净利含金量=经营现金净流量/净利润" prop="f082n">
                      <el-input v-model="formData.f082n" placeholder="请输入净利含金量	净利含金量=经营现金净流量/净利润" />
                    </el-form-item>
                    <el-form-item label="非经常性损益占比	非经常性损益占比 =非经常性损益/净利润=(资产减值损失+公允价值变动净收益+投资收益+汇兑收益+补贴收入+营业外收入+营业外支出)/净收益" prop="f083n">
                      <el-input v-model="formData.f083n" placeholder="请输入非经常性损益占比	非经常性损益占比 =非经常性损益/净利润=(资产减值损失+公允价值变动净收益+投资收益+汇兑收益+补贴收入+营业外收入+营业外支出)/净收益" />
                    </el-form-item>
                    <el-form-item label="期间费用增长率	期间费用增长率=((年末期间费用-上年末期间费用)/上年末期间费用)*100%" prop="f084n">
                      <el-input v-model="formData.f084n" placeholder="请输入期间费用增长率	期间费用增长率=((年末期间费用-上年末期间费用)/上年末期间费用)*100%" />
                    </el-form-item>
                    <el-form-item label="基本获利能力	基本获利能力=年化总资产息税前经常性收益率(EBIT) EBIT=净利润+所得税+利息" prop="f085n">
                      <el-input v-model="formData.f085n" placeholder="请输入基本获利能力	基本获利能力=年化总资产息税前经常性收益率(EBIT) EBIT=净利润+所得税+利息" />
                    </el-form-item>
                    <el-form-item label="应收账款占比	应收账款占比=应收账款/总资产" prop="f086n">
                      <el-input v-model="formData.f086n" placeholder="请输入应收账款占比	应收账款占比=应收账款/总资产" />
                    </el-form-item>
                    <el-form-item label="存货占比	存货占比=存货/总资产" prop="f087n">
                      <el-input v-model="formData.f087n" placeholder="请输入存货占比	存货占比=存货/总资产" />
                    </el-form-item>
                    <el-form-item label="年化期间费用毛利比	年化期间费用毛利比=期间费用/毛利" prop="f088n">
                      <el-input v-model="formData.f088n" placeholder="请输入年化期间费用毛利比	年化期间费用毛利比=期间费用/毛利" />
                    </el-form-item>
                    <el-form-item label="营业收入" prop="f089n">
                      <el-input v-model="formData.f089n" placeholder="请输入营业收入" />
                    </el-form-item>
                    <el-form-item label="营业成本" prop="f090n">
                      <el-input v-model="formData.f090n" placeholder="请输入营业成本" />
                    </el-form-item>
                    <el-form-item label="销售费用" prop="f091n">
                      <el-input v-model="formData.f091n" placeholder="请输入销售费用" />
                    </el-form-item>
                    <el-form-item label="管理费用" prop="f092n">
                      <el-input v-model="formData.f092n" placeholder="请输入管理费用" />
                    </el-form-item>
                    <el-form-item label="财务费用" prop="f093n">
                      <el-input v-model="formData.f093n" placeholder="请输入财务费用" />
                    </el-form-item>
                    <el-form-item label="三费合计" prop="f094n">
                      <el-input v-model="formData.f094n" placeholder="请输入三费合计" />
                    </el-form-item>
                    <el-form-item label="公允价值变动净收益" prop="f095n">
                      <el-input v-model="formData.f095n" placeholder="请输入公允价值变动净收益" />
                    </el-form-item>
                    <el-form-item label="投资收益" prop="f096n">
                      <el-input v-model="formData.f096n" placeholder="请输入投资收益" />
                    </el-form-item>
                    <el-form-item label="营业利润" prop="f097n">
                      <el-input v-model="formData.f097n" placeholder="请输入营业利润" />
                    </el-form-item>
                    <el-form-item label="补贴收入" prop="f098n">
                      <el-input v-model="formData.f098n" placeholder="请输入补贴收入" />
                    </el-form-item>
                    <el-form-item label="营业外收支净额" prop="f099n">
                      <el-input v-model="formData.f099n" placeholder="请输入营业外收支净额" />
                    </el-form-item>
                    <el-form-item label="利润总额" prop="f100n">
                      <el-input v-model="formData.f100n" placeholder="请输入利润总额" />
                    </el-form-item>
                    <el-form-item label="净利润" prop="f101n">
                      <el-input v-model="formData.f101n" placeholder="请输入净利润" />
                    </el-form-item>
                    <el-form-item label="归属于母公司所有者的净利润" prop="f102n">
                      <el-input v-model="formData.f102n" placeholder="请输入归属于母公司所有者的净利润" />
                    </el-form-item>
                    <el-form-item label="扣除非经常性损益后的净利润(2007版)" prop="f103n">
                      <el-input v-model="formData.f103n" placeholder="请输入扣除非经常性损益后的净利润(2007版)" />
                    </el-form-item>
                    <el-form-item label="非经常性损益合计(2007版)" prop="f104n">
                      <el-input v-model="formData.f104n" placeholder="请输入非经常性损益合计(2007版)" />
                    </el-form-item>
                    <el-form-item label="经营活动现金流量净额" prop="f105n">
                      <el-input v-model="formData.f105n" placeholder="请输入经营活动现金流量净额" />
                    </el-form-item>
                    <el-form-item label="投资活动现金流量净额" prop="f106n">
                      <el-input v-model="formData.f106n" placeholder="请输入投资活动现金流量净额" />
                    </el-form-item>
                    <el-form-item label="筹资活动现金流量净额" prop="f107n">
                      <el-input v-model="formData.f107n" placeholder="请输入筹资活动现金流量净额" />
                    </el-form-item>
                    <el-form-item label="现金及现金等价物净增加额" prop="f108n">
                      <el-input v-model="formData.f108n" placeholder="请输入现金及现金等价物净增加额" />
                    </el-form-item>
                    <el-form-item label="货币资金" prop="f109n">
                      <el-input v-model="formData.f109n" placeholder="请输入货币资金" />
                    </el-form-item>
                    <el-form-item label="交易性金融资产" prop="f110n">
                      <el-input v-model="formData.f110n" placeholder="请输入交易性金融资产" />
                    </el-form-item>
                    <el-form-item label="应收账款" prop="f111n">
                      <el-input v-model="formData.f111n" placeholder="请输入应收账款" />
                    </el-form-item>
                    <el-form-item label="存货" prop="f112n">
                      <el-input v-model="formData.f112n" placeholder="请输入存货" />
                    </el-form-item>
                    <el-form-item label="流动资产合计" prop="f113n">
                      <el-input v-model="formData.f113n" placeholder="请输入流动资产合计" />
                    </el-form-item>
                    <el-form-item label="投资性房地产" prop="f114n">
                      <el-input v-model="formData.f114n" placeholder="请输入投资性房地产" />
                    </el-form-item>
                    <el-form-item label="商誉" prop="f115n">
                      <el-input v-model="formData.f115n" placeholder="请输入商誉" />
                    </el-form-item>
                    <el-form-item label="固定资产" prop="f116n">
                      <el-input v-model="formData.f116n" placeholder="请输入固定资产" />
                    </el-form-item>
                    <el-form-item label="非流动资产合计" prop="f117n">
                      <el-input v-model="formData.f117n" placeholder="请输入非流动资产合计" />
                    </el-form-item>
                    <el-form-item label="资产总计" prop="f118n">
                      <el-input v-model="formData.f118n" placeholder="请输入资产总计" />
                    </el-form-item>
                    <el-form-item label="流动负债合计" prop="f119n">
                      <el-input v-model="formData.f119n" placeholder="请输入流动负债合计" />
                    </el-form-item>
                    <el-form-item label="非流动负债合计" prop="f120n">
                      <el-input v-model="formData.f120n" placeholder="请输入非流动负债合计" />
                    </el-form-item>
                    <el-form-item label="负债合计" prop="f121n">
                      <el-input v-model="formData.f121n" placeholder="请输入负债合计" />
                    </el-form-item>
                    <el-form-item label="股本" prop="f122n">
                      <el-input v-model="formData.f122n" placeholder="请输入股本" />
                    </el-form-item>
                    <el-form-item label="资本公积" prop="f123n">
                      <el-input v-model="formData.f123n" placeholder="请输入资本公积" />
                    </el-form-item>
                    <el-form-item label="盈余公积" prop="f124n">
                      <el-input v-model="formData.f124n" placeholder="请输入盈余公积" />
                    </el-form-item>
                    <el-form-item label="库存股" prop="f125n">
                      <el-input v-model="formData.f125n" placeholder="请输入库存股" />
                    </el-form-item>
                    <el-form-item label="未分配利润" prop="f126n">
                      <el-input v-model="formData.f126n" placeholder="请输入未分配利润" />
                    </el-form-item>
                    <el-form-item label="少数股东权益" prop="f127n">
                      <el-input v-model="formData.f127n" placeholder="请输入少数股东权益" />
                    </el-form-item>
                    <el-form-item label="股东权益合计" prop="f128n">
                      <el-input v-model="formData.f128n" placeholder="请输入股东权益合计" />
                    </el-form-item>
                    <el-form-item label="归属于母公司所有者权益" prop="f129n">
                      <el-input v-model="formData.f129n" placeholder="请输入归属于母公司所有者权益" />
                    </el-form-item>
                    <el-form-item label="研发费用	20240131新增" prop="f130n">
                      <el-input v-model="formData.f130n" placeholder="请输入研发费用	20240131新增" />
                    </el-form-item>
                    <el-form-item label="研发费用率	20240131新增" prop="f131n">
                      <el-input v-model="formData.f131n" placeholder="请输入研发费用率	20240131新增" />
                    </el-form-item>
                    <el-form-item label="销售费用率	20240131新增" prop="f132n">
                      <el-input v-model="formData.f132n" placeholder="请输入销售费用率	20240131新增" />
                    </el-form-item>
                    <el-form-item label="四费费用率	20240131新增" prop="f133n">
                      <el-input v-model="formData.f133n" placeholder="请输入四费费用率	20240131新增" />
                    </el-form-item>
                    <el-form-item label="四费费用率同比变化值	20240131新增" prop="f134n">
                      <el-input v-model="formData.f134n" placeholder="请输入四费费用率同比变化值	20240131新增" />
                    </el-form-item>
                    <el-form-item label="三费费用率同比变化值	20240131新增" prop="f135n">
                      <el-input v-model="formData.f135n" placeholder="请输入三费费用率同比变化值	20240131新增" />
                    </el-form-item>
                    <el-form-item label="财务费用率同比变化值	20240131新增" prop="f136n">
                      <el-input v-model="formData.f136n" placeholder="请输入财务费用率同比变化值	20240131新增" />
                    </el-form-item>
                    <el-form-item label="管理费用率同比变化值	20240131新增" prop="f137n">
                      <el-input v-model="formData.f137n" placeholder="请输入管理费用率同比变化值	20240131新增" />
                    </el-form-item>
                    <el-form-item label="销售费用率同比变化值	20240131新增" prop="f138n">
                      <el-input v-model="formData.f138n" placeholder="请输入销售费用率同比变化值	20240131新增" />
                    </el-form-item>
                    <el-form-item label="研发费用率同比变化值	20240131新增" prop="f139n">
                      <el-input v-model="formData.f139n" placeholder="请输入研发费用率同比变化值	20240131新增" />
                    </el-form-item>
                    <el-form-item label="毛利率同比变化值	20240131新增" prop="f140n">
                      <el-input v-model="formData.f140n" placeholder="请输入毛利率同比变化值	20240131新增" />
                    </el-form-item>
                    <el-form-item label="扣除非经常性损益后的净利润同比变化率	20240131新增" prop="f141n">
                      <el-input v-model="formData.f141n" placeholder="请输入扣除非经常性损益后的净利润同比变化率	20240131新增" />
                    </el-form-item>
                    <el-form-item label="归属于母公司所有者的净利润同比变化率	20240131新增" prop="f142n">
                      <el-input v-model="formData.f142n" placeholder="请输入归属于母公司所有者的净利润同比变化率	20240131新增" />
                    </el-form-item>
                    <el-form-item label="经营活动产生的现金流净额同比变化率	20240131新增" prop="f143n">
                      <el-input v-model="formData.f143n" placeholder="请输入经营活动产生的现金流净额同比变化率	20240131新增" />
                    </el-form-item>
      </el-form>
              <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm" :disabled="formLoading">确 定</el-button>
        <el-button @click="dialogVisible = false">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
  import * as ZbBaseApi from '@/api/invest/zbbase';
      export default {
    name: "ZbBaseForm",
    components: {
                    },
    data() {
      return {
        // 弹出层标题
        dialogTitle: "",
        // 是否显示弹出层
        dialogVisible: false,
        // 表单的加载中：1）修改时的数据加载；2）提交的按钮禁用
        formLoading: false,
        // 表单参数
        formData: {
                            id: undefined,
                            orgname: undefined,
                            seccode: undefined,
                            secname: undefined,
                            startdate: undefined,
                            enddate: undefined,
                            f001v: undefined,
                            f002v: undefined,
                            f003n: undefined,
                            f004n: undefined,
                            f005n: undefined,
                            f006n: undefined,
                            f007n: undefined,
                            f008n: undefined,
                            f009n: undefined,
                            f010n: undefined,
                            f011n: undefined,
                            f012n: undefined,
                            f013n: undefined,
                            f014n: undefined,
                            f015n: undefined,
                            f016n: undefined,
                            f017n: undefined,
                            f018n: undefined,
                            f019n: undefined,
                            f020n: undefined,
                            f021n: undefined,
                            f022n: undefined,
                            f023n: undefined,
                            f024n: undefined,
                            f025n: undefined,
                            f026n: undefined,
                            f027n: undefined,
                            f028n: undefined,
                            f029n: undefined,
                            f030n: undefined,
                            f031n: undefined,
                            f032n: undefined,
                            f033n: undefined,
                            f034n: undefined,
                            f035n: undefined,
                            f036n: undefined,
                            f037n: undefined,
                            f038n: undefined,
                            f039n: undefined,
                            f040n: undefined,
                            f041n: undefined,
                            f042n: undefined,
                            f043n: undefined,
                            f044n: undefined,
                            f045n: undefined,
                            f046n: undefined,
                            f047n: undefined,
                            f048n: undefined,
                            f049n: undefined,
                            f050n: undefined,
                            f051n: undefined,
                            f052n: undefined,
                            f053n: undefined,
                            f054n: undefined,
                            f055n: undefined,
                            f056n: undefined,
                            f057n: undefined,
                            f058n: undefined,
                            f059n: undefined,
                            f060n: undefined,
                            f061n: undefined,
                            f062n: undefined,
                            f063n: undefined,
                            f064n: undefined,
                            f065n: undefined,
                            f066n: undefined,
                            f067n: undefined,
                            f068n: undefined,
                            f069d: undefined,
                            f070v: undefined,
                            f071v: undefined,
                            f076n: undefined,
                            f077n: undefined,
                            f078n: undefined,
                            f079n: undefined,
                            f080n: undefined,
                            f081n: undefined,
                            f082n: undefined,
                            f083n: undefined,
                            f084n: undefined,
                            f085n: undefined,
                            f086n: undefined,
                            f087n: undefined,
                            f088n: undefined,
                            f089n: undefined,
                            f090n: undefined,
                            f091n: undefined,
                            f092n: undefined,
                            f093n: undefined,
                            f094n: undefined,
                            f095n: undefined,
                            f096n: undefined,
                            f097n: undefined,
                            f098n: undefined,
                            f099n: undefined,
                            f100n: undefined,
                            f101n: undefined,
                            f102n: undefined,
                            f103n: undefined,
                            f104n: undefined,
                            f105n: undefined,
                            f106n: undefined,
                            f107n: undefined,
                            f108n: undefined,
                            f109n: undefined,
                            f110n: undefined,
                            f111n: undefined,
                            f112n: undefined,
                            f113n: undefined,
                            f114n: undefined,
                            f115n: undefined,
                            f116n: undefined,
                            f117n: undefined,
                            f118n: undefined,
                            f119n: undefined,
                            f120n: undefined,
                            f121n: undefined,
                            f122n: undefined,
                            f123n: undefined,
                            f124n: undefined,
                            f125n: undefined,
                            f126n: undefined,
                            f127n: undefined,
                            f128n: undefined,
                            f129n: undefined,
                            f130n: undefined,
                            f131n: undefined,
                            f132n: undefined,
                            f133n: undefined,
                            f134n: undefined,
                            f135n: undefined,
                            f136n: undefined,
                            f137n: undefined,
                            f138n: undefined,
                            f139n: undefined,
                            f140n: undefined,
                            f141n: undefined,
                            f142n: undefined,
                            f143n: undefined,
        },
        // 表单校验
        formRules: {
        },
                        };
    },
    methods: {
      /** 打开弹窗 */
     async open(id) {
        this.dialogVisible = true;
        this.reset();
        // 修改时，设置数据
        if (id) {
          this.formLoading = true;
          try {
            const res = await ZbBaseApi.getZbBase(id);
            this.formData = res.data;
            this.title = "修改个股报告期指标";
          } finally {
            this.formLoading = false;
          }
        }
        this.title = "新增个股报告期指标";
              },
      /** 提交按钮 */
      async submitForm() {
        // 校验主表
        await this.$refs["formRef"].validate();
                  this.formLoading = true;
        try {
          const data = this.formData;
                  // 修改的提交
          if (data.id) {
            await ZbBaseApi.updateZbBase(data);
            this.$modal.msgSuccess("修改成功");
            this.dialogVisible = false;
            this.$emit('success');
            return;
          }
          // 添加的提交
          await ZbBaseApi.createZbBase(data);
          this.$modal.msgSuccess("新增成功");
          this.dialogVisible = false;
          this.$emit('success');
        } finally {
          this.formLoading = false;
        }
      },
                      /** 表单重置 */
      reset() {
        this.formData = {
                            id: undefined,
                            orgname: undefined,
                            seccode: undefined,
                            secname: undefined,
                            startdate: undefined,
                            enddate: undefined,
                            f001v: undefined,
                            f002v: undefined,
                            f003n: undefined,
                            f004n: undefined,
                            f005n: undefined,
                            f006n: undefined,
                            f007n: undefined,
                            f008n: undefined,
                            f009n: undefined,
                            f010n: undefined,
                            f011n: undefined,
                            f012n: undefined,
                            f013n: undefined,
                            f014n: undefined,
                            f015n: undefined,
                            f016n: undefined,
                            f017n: undefined,
                            f018n: undefined,
                            f019n: undefined,
                            f020n: undefined,
                            f021n: undefined,
                            f022n: undefined,
                            f023n: undefined,
                            f024n: undefined,
                            f025n: undefined,
                            f026n: undefined,
                            f027n: undefined,
                            f028n: undefined,
                            f029n: undefined,
                            f030n: undefined,
                            f031n: undefined,
                            f032n: undefined,
                            f033n: undefined,
                            f034n: undefined,
                            f035n: undefined,
                            f036n: undefined,
                            f037n: undefined,
                            f038n: undefined,
                            f039n: undefined,
                            f040n: undefined,
                            f041n: undefined,
                            f042n: undefined,
                            f043n: undefined,
                            f044n: undefined,
                            f045n: undefined,
                            f046n: undefined,
                            f047n: undefined,
                            f048n: undefined,
                            f049n: undefined,
                            f050n: undefined,
                            f051n: undefined,
                            f052n: undefined,
                            f053n: undefined,
                            f054n: undefined,
                            f055n: undefined,
                            f056n: undefined,
                            f057n: undefined,
                            f058n: undefined,
                            f059n: undefined,
                            f060n: undefined,
                            f061n: undefined,
                            f062n: undefined,
                            f063n: undefined,
                            f064n: undefined,
                            f065n: undefined,
                            f066n: undefined,
                            f067n: undefined,
                            f068n: undefined,
                            f069d: undefined,
                            f070v: undefined,
                            f071v: undefined,
                            f076n: undefined,
                            f077n: undefined,
                            f078n: undefined,
                            f079n: undefined,
                            f080n: undefined,
                            f081n: undefined,
                            f082n: undefined,
                            f083n: undefined,
                            f084n: undefined,
                            f085n: undefined,
                            f086n: undefined,
                            f087n: undefined,
                            f088n: undefined,
                            f089n: undefined,
                            f090n: undefined,
                            f091n: undefined,
                            f092n: undefined,
                            f093n: undefined,
                            f094n: undefined,
                            f095n: undefined,
                            f096n: undefined,
                            f097n: undefined,
                            f098n: undefined,
                            f099n: undefined,
                            f100n: undefined,
                            f101n: undefined,
                            f102n: undefined,
                            f103n: undefined,
                            f104n: undefined,
                            f105n: undefined,
                            f106n: undefined,
                            f107n: undefined,
                            f108n: undefined,
                            f109n: undefined,
                            f110n: undefined,
                            f111n: undefined,
                            f112n: undefined,
                            f113n: undefined,
                            f114n: undefined,
                            f115n: undefined,
                            f116n: undefined,
                            f117n: undefined,
                            f118n: undefined,
                            f119n: undefined,
                            f120n: undefined,
                            f121n: undefined,
                            f122n: undefined,
                            f123n: undefined,
                            f124n: undefined,
                            f125n: undefined,
                            f126n: undefined,
                            f127n: undefined,
                            f128n: undefined,
                            f129n: undefined,
                            f130n: undefined,
                            f131n: undefined,
                            f132n: undefined,
                            f133n: undefined,
                            f134n: undefined,
                            f135n: undefined,
                            f136n: undefined,
                            f137n: undefined,
                            f138n: undefined,
                            f139n: undefined,
                            f140n: undefined,
                            f141n: undefined,
                            f142n: undefined,
                            f143n: undefined,
        };
        this.resetForm("formRef");
      }
    }
  };
</script>